package cn.itsource.pethome.Basic.controller;

import cn.itsource.pethome.Basic.service.IVerificationCodeService;
import cn.itsource.pethome.Basic.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/verificationCode")
public class VerificationCodeController {
    @Autowired
    private IVerificationCodeService verificationCodeService;
    @RequestMapping("/sendPhoneCode")
    public AjaxResult sendPhoneCode(@RequestBody Map<String,String> param){
        return verificationCodeService.sendPhoneCode(param.get("phone"));
    }
}
